<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddPataToPolicyTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::table('policy', function (Blueprint $table) {
            $table->tinyInteger('pata')->default(0)->comment('是否验价');
            $table->char('up_float',8)->default('0')->comment('上浮价格');
            $table->char('down_float',8)->default('0')->comment('下浮价格');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
